/**************************************************************************
 * @doc CPAC 
 * @module CPAC |  
 * Source code for the CPAC handling functions.
 *
 * Product         :   SoftPay 2000 (Global Payment Methodology).
 * <nl>Developer   :   SoftPay Development Team (I_SP2000).
 * <nl>Notes       :
 *
 * @head3 CPAC Functions |
 * @index | CPAC
 * @end
 *
 * Copyright (c) 1996-2000 by VeriFone Inc. All rights reserved.
 * 
 * No part of this software may be used, stored, compiled, reproduced,
 * modified, transcribed, translated, transmitted, or transferred, in any form 
 * or by any means whether electronic, mechanical, magnetic, optical, 
 * or otherwise, without the express prior written permission of VeriFone, Inc.
 *
 * Revision History
 * ------------------------------------------------------------------------
 $Log: /SoftPay/SPK2SIM/Source/CPACSrc/cpacids.h $

1. vipin_k1 12/10/00 changed the cpacids to avaoid clashes with Amex.

********************************************************************************/

////////////////////////////////////////////////////////////////////
//
// D E F I N E S
//
#define CPAC_INIT_PACKET                            0x3601
#define CPAC_RECEIPT_FIELDS                     0x1602
#define CPAC_ERR_REPORT_OPERATION               0x1603
#define ERR_CPAC_REPORT_OPERATION               0x1604
#define AUTO_SETTLE_OPERATION                   0x1605
#define TEST_AUTO_SETTLE_OPERATION              0x1606
#define CPAC_FIND_HANDLES_OPERATION             0x1607
#define CPAC_HANDLES_OPERATION                     0x1608
#define CPAC_REPRINT_SETTLEMENT                 0x1609


/*** Transaction Flow ****/
#define CPAC_UPDATE_BATCH                       0x0605
#define VERIFY_CPAC_TRANS_TYPE                  0x0606
#define SET_CPAC_OFF_ONLINE                     0x0607
#define CBT_UPDATE_ACCUM                        0x0608
#define CPAC_LOAD_CUST_CPAC                 0x0609

/*** BATCH RELATED FUNCTION ID ***/
#define CPAC_RET_REF                                0x6611
#define CPAC_BATCH_UPLOAD_STAN                  0x6612
#define CPAC_PROC_CODE                          0x6613
#define CPAC_POS_EM                             0x6614
#define CPAC_MTI                                    0x6615
#define CPAC_BIT_OPEN_TAB_OFFLINE               0x6616
#define CPAC_ADJUST                             0x6617
#define CPAC_ADJUST_AMOUNT                      0x6618
#define CPAC_TIP_ADJUST_AMOUNT                  0x6619
#define CPAC_BATCH_TOTALS_OPERATION         0x661A
#define CPAC_VOID_YESNO_OPERATION               0x661B
#define CPAC_GET_INV_NUM                        0x661C   
#define CPAC_GET_INVOICE_NUM                    0x661D 
#define CPAC_CLOSE_TAB_OPERATION                0x661E
#define CPAC_CHECK_DO_AUTOSETTLE                0x661F
#define CPAC_GET_AUTH_CODE                      0x6620
#define CPAC_CONFIRM_INVAMT                     0x6621  
#define CPAC_USER_CHOICE                        0x6622
#define CPAC_TOT_AMT_ALWD                       0x6623
#define CPAC_TOT_AMT_UPDATE                     0x6624
#define CPAC_EDIT_TABLE                         0x6625
#define CPAC_USR_INV_NUM_ID                     0x6626
#define CPAC_DEMO_TRAIN                         0x6627
#define CPAC_CHK_BATCH_OPERATION                0x6628
#define CPAC_CHK_LONG_AMT_OVERFLOW          0x6629
#define CPAC_KEY_FUNC_2                         0x662A
//#ifdef CITI_PHIL
#define CITI_OPEN_TAB_RETREIVE_INV_NUM          0x662B
//#endif CITI_PHIL
#define CPAC_PRINT_LINE_FEED                                    0x662C
#define CPAC_TIP_PERCENT_VALIDATION             0x662D
#define CPAC_PFR_DISPLAY_TRANS_NAME             0x662E
#define CPAC_ADJTIP_FLAG                        0x662F
#define IMAM_TC_FLAG								0x6630  //
#define IMAM_CTL_DATA							0x6631  //
/**** PROTOCOL eNGINE tABLE RELATED FUNC ID ***/
#define SEND_CPAC_PACKET                        0x4605
#define SETTLE_CPAC                             0x4606



/*** Printing function ****/
#define CPAC_PRINT_RECEIPT_TOP                  0x2611
#define CPAC_PRINT_RCPT_BOTTOM                          0x2612
#define CPAC_PRINT_REPORT_HEADER                        0x2613
#define CPAC_PRINT_REPORT_INIT                  0x2614
#define CPAC_PRINT_SUMMARY_REPORT               0x2615
#define CITI_PRINT_RECEIPT                      0x2616
#define CITI_USER_CHOICE                            0x2617
#define PHIL_CITI_USER_CHOICE                   0x2618
// Kelvin_F2 --- start: rewrite print module
#define CPAC_REPRINT_SUMMARY_REPORT         0x2619
#define CPAC_PRINT_STATS_REPORT                 0x261A
#define CPAC_PRINT_CLERK_DETAIL_REPORT          0x261B
#define CPAC_PRINT_CLERK_TOTALS_REPORT          0x261C
#define CPAC_PRINT_CLERK_TABLE_REPORT           0x261D
// Kelvin_F2 --- end: rewrite print module

/*** Custom Operations ****/
//#define INIT_VERIPRINT                            0x6650
//#define INIT_VP_HANDLE                            0x6651
//#define SET_CPAC_STATUS_LINE                  0x6651
#define CUST_GET_BASE_AMOUNT                    0x6652
#define CUST_COMPUTE_DISPLAY_TOTAL              0x6653 
#define CUST_GET_TIP                                0x6654
#define CUST_DISPLAY_AT_INIT                        0x6655
#define CUST_LOGO_DISPLAY                       0x6656
#define EDIT_CPAC_OPERATION                     0x6657
#define CPAC_GET_USR_INV_NUM                    0x6658
//#define CPAC_RANGE_NULL                           0x6659
#define CPAC_BATCHCLEAR                         0x665A  
#define CPAC_VALIDATE_SWIPED_CARD               0x665B
#define CITI_IND_CHECK_BATCH_TOTALS             0x665C
#define CPAC_CLEAR_LAST_RECEIPT_FILE                0x665D
#define CPAC_LOAD_MISSING_TABLE_FOR_PWRFAIL 0x665E
#define CITI_IND_GET_BATCH_NUM_AND_CHECK        0x665F
#define CITI_IND_PRINT_STATS_REPORT             0x6660
#define CHECK_MULTI_BATCH_EMPTY                 0x6661
#define DELETE_SINGLE_BATCH                     0x6662
#define CPAC_SHOW_MEMORY_LEFT                   0x6663
#define CPAC_SETTLEMENT                         0x6664
#define CITI_GET_BATCH_NUM                      0x6665
#define CITI_GET_SETT_DATE                      0x6666
#define CITI_AIRLINE_CODE                       0x6667
#define CPAC_GET_CHECK_MID                  0x6668
#define CPAC_GET_MERCH_ENABLE                   0x6669
#define CPAC_AUTO_SETTLEMENT                    0x666A  
#define CPAC_SET_SG_SETTLE_CODE             0x666B
#define CPAC_SET_AUTO_HANDLE                    0x666C  
#define CPAC_SETTLE_A_HOST                      0x666D  
#define INIT_DAILY_PAYMENT                      0x666E  
#define CPAC_DAILY_PAYMENT                  0x666F  
#define SET_TO_MAIN_MENU                         0x6670
#define CPAC_SET_MUST_SETTLE_FLAG           0x6671
#define CPAC_REPRINT_LAST_RECEIPT               0x6672
#define CPAC_TRANS_NAME_DISP                    0x6673
#define CPAC_DISPLAY_RESPONSE                   0x6674
#define RENAME_REVERSAL_FILE                    0x6675
#define CPAC_LOAD_VOID_ISSUE_NUMBER             0x6676
#define CPAC_CLEAR_CHOLDER                      0x6677
#define EDIT_CST                                    0x6678 
#define EDIT_CST_OPERATION                      0x6679
#define EDIT_LCT_OPERATION                      0x6680
#define EDIT_LCT                                                         0x6681
#define CPAC_CLEAR_ERRMSG                       0x6682
#define CPAC_FORMATER_CLOSE_HANDLE                  0x6683
#define CPAC_CHK_INV_NUM                        0x6684
#define CPAC_REMEMBER_HOST_SELECTED                0x6685
#define CPAC_REPRINT_SETT_REPORT                0x6686
#define CPAC_VALIDATE_VOID                      0x6687
#define CPAC_VALIDATE_ADJUST                    0x6688
#define CPAC_REPRINT_ANY_RECEIPT                0x6689
#define CPAC_REVERSAL_CLEAR                 0x668A
#define CPAC_RESTART_24DAYS				0x668B
#define CPAC_PRINT_PACKET_LOG			0x668C

/* menu3200 stuff ***/
#define MENU_EDIT_ACQUIRERS                     -22
#define CPAC_REPRINT_LAST_INVOICE                   -99

#define CITI_PFR_BEGIN_CUST_PRINTING_RECEIPT        15
#define CITI_PFR_BEGIN_BANK_PRINTING_RECEIPT        16
#define PFR_BEGIN_AUTO_SETTLEMENT               17
#define CPAC_PFR_ANALYSE_BEGIN                  18

// added the custom operation for 1.4 // 1.4

#define CPAC_SHOW_MEMORY_LEFT_OPERATION     681  // 680-699 reserved for CPAC - Asia  1.4
#define CPAC_PHIL_ADJUST                            682  // 1.4 
// Kelvin_F2 --- start: rewrite print module 
#define REPRINT_LAST_SETTLE_OPERATION           683
// Kelvin_F2 --- end: rewrite print module

// Kelvin_F2 --- start: Login operation
#define CPAC_GET_CLERK_ID                       684
#define CPAC_LOGIN_OPERATION                    685
#define CPAC_INIT_LOGIN_OPERATION               686
// Kelvin_F2 --- end: Login operation
#define HKGM_REPRINT_LAST_RECEIPT               687
#define HKGM_REPRINT_ANY_RECEIPT                688
#define HKGM_GET_RECEIPT_COPY                   689
#define LOAD_TIP_DETAILS                        690
#define CPAC_CLEAR_ADVICE                                      691
#define CPAC_REVERSAL_CLEAR_OPERATION       692
#define CPAC_PACKET_LOG_OPERATION		693


